//#include <base.js>
//#include <openlayersExt.js>
//#include <event.js>


/**
* 
* Classe CWN2.LegendPanelBuilder - Build the LegendPanel
* 
* @namespace CWN2
* @class LegendPanelBuilder
* 
*/

CWN2.LegendPanelBuilder = {
	
	/**
	* 
	* Build the LegendPanel
	* 
	* @method build
	* 
	* 
	*/ 
	
	build: function() {
		
		if(CWN2.base.DEBUG) {
			console.log('CWN2.LegendPanelBuilder');
		} 
		
	    var legendPanel = new GeoExt.LegendPanel({
	        defaults: {
	            labelCls: 'mylabel',
	            style: 'padding:5px'
	        },
	        bodyStyle: 'padding:5px',
	        width: 200,
	        autoScroll: true,
	        region: 'east',
			collapsible: true
	    });
		
		return legendPanel;

	}
	
};	
	

